package com.boom.monitor.VO.jmx;

/**
 * @author:yzw
 * @Date:2021/3/1 下午4:23
 * @desc:
 * @version:1.0
 */
public class SystemInfo {

	/**
	 * 操作系统打开的文件描述符数量
	 */
	private long openFileDescriptorCount;

	/**
	 * 操作系统最大文件描述符数量
	 */
	private long maxFileDescriptorCount;

	/**
	 * Returns the amount of virtual memory that is guaranteed to be available to the running process in bytes
	 * , or -1 if this operation is not supported
	 */
	private String committedVirtualMemorySize;

	/**
	 * Returns the total amount of swap space in bytes
	 */
	private String totalSwapSpaceSize;

	/**
	 * Returns the amount of free swap space in bytes
	 */
	private String freeSwapSpaceSize;

	/**
	 * Returns the amount of free physical memory in bytes
	 */
	private String freePhysicalMemorySize;

	/**
	 * Returns the total amount of physical memory in bytes
	 */
	private String totalPhysicalMemorySize;

	/**
	 * Returns the CPU time used by the process on which the Java virtual machine is running in nanoseconds
	 */
	private long processCpuTime;

	/**
	 * returns the CPU usage of the whole system
	 */
	private double systemCpuLoad;

	/**
	 * returns the CPU usage of the JVM
	 */
	private double processCpuLoad;

	/**
	 * Returns the operating system name.
	 * This method is equivalent to System.getProperty("os.name")
	 */
	private String name;

	/**
	 * Returns the number of processors available to the Java virtual machine
	 */
	private int availableProcessors;

	/**
	 * Returns the operating system architecture.
	 * This method is equivalent to <tt>System.getProperty("os.arch")</tt>.
	 */
	private String arch;
	/**
	 * Returns the operating system version.
	 * This method is equivalent to <tt>System.getProperty("os.version")</tt>.
	 */
	private String version;

	/**
	 * Returns the system load average for the last minute.
	 */
	private double systemLoadAverage;

	public long getOpenFileDescriptorCount() {
		return openFileDescriptorCount;
	}

	public void setOpenFileDescriptorCount(long openFileDescriptorCount) {
		this.openFileDescriptorCount = openFileDescriptorCount;
	}

	public long getMaxFileDescriptorCount() {
		return maxFileDescriptorCount;
	}

	public void setMaxFileDescriptorCount(long maxFileDescriptorCount) {
		this.maxFileDescriptorCount = maxFileDescriptorCount;
	}

	public String getCommittedVirtualMemorySize() {
		return committedVirtualMemorySize;
	}

	public void setCommittedVirtualMemorySize(String committedVirtualMemorySize) {
		this.committedVirtualMemorySize = committedVirtualMemorySize;
	}

	public String getTotalSwapSpaceSize() {
		return totalSwapSpaceSize;
	}

	public void setTotalSwapSpaceSize(String totalSwapSpaceSize) {
		this.totalSwapSpaceSize = totalSwapSpaceSize;
	}

	public String getFreeSwapSpaceSize() {
		return freeSwapSpaceSize;
	}

	public void setFreeSwapSpaceSize(String freeSwapSpaceSize) {
		this.freeSwapSpaceSize = freeSwapSpaceSize;
	}

	public String getFreePhysicalMemorySize() {
		return freePhysicalMemorySize;
	}

	public void setFreePhysicalMemorySize(String freePhysicalMemorySize) {
		this.freePhysicalMemorySize = freePhysicalMemorySize;
	}

	public String getTotalPhysicalMemorySize() {
		return totalPhysicalMemorySize;
	}

	public void setTotalPhysicalMemorySize(String totalPhysicalMemorySize) {
		this.totalPhysicalMemorySize = totalPhysicalMemorySize;
	}

	public long getProcessCpuTime() {
		return processCpuTime;
	}

	public void setProcessCpuTime(long processCpuTime) {
		this.processCpuTime = processCpuTime;
	}

	public double getSystemCpuLoad() {
		return systemCpuLoad;
	}

	public void setSystemCpuLoad(double systemCpuLoad) {
		this.systemCpuLoad = systemCpuLoad;
	}

	public double getProcessCpuLoad() {
		return processCpuLoad;
	}

	public void setProcessCpuLoad(double processCpuLoad) {
		this.processCpuLoad = processCpuLoad;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAvailableProcessors() {
		return availableProcessors;
	}

	public void setAvailableProcessors(int availableProcessors) {
		this.availableProcessors = availableProcessors;
	}

	public String getArch() {
		return arch;
	}

	public void setArch(String arch) {
		this.arch = arch;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public double getSystemLoadAverage() {
		return systemLoadAverage;
	}

	public void setSystemLoadAverage(double systemLoadAverage) {
		this.systemLoadAverage = systemLoadAverage;
	}
}
